﻿<%@ Import Namespace="SinsenWeb.Helpers"%>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Form.ascx.cs" Inherits="SinsenWeb.Views.MemberAdmin.Form" %>
<div>
    <label for="Member.ActiveState">Aktiv?</label>
<%= Html.DropDownList("Member.ActiveState", new SelectList(StaticFormHelper.ActiveStates, "Id","Name",Member.ActiveState)) %>
</div>

<div>
    <label for="Member.Firstname">Fornavn</label>
    <input type="text" name="Member.Firstname" value='<%= Member.Firstname %>' />
</div>
<div>
    <label for="Member.Lastname">Etternavn</label>
    <input type="text" name="Member.Lastname" value='<%= Member.Lastname %>' />
</div>
<div>
    <label for="Member.Username">Brukernavn</label>
    <input type="text" name="Member.Username" value='<%= Member.Username %>' />
</div>
<div>
    <label for="Member.Password">Passord</label>
    <input type="password" name="Member.Password" value='<%= Member.Password %>' />
</div>
<div>
    <label for="Member.Email">Epostadresse</label>
    <input type="text" name="Member.Email" value='<%= Member.Email %>' />
</div>
<div>
    <label for="Member.Instrument">Instrument</label>
    <%= Html.DropDownList("Member.Instrument", new SelectList(Instruments,"Id","Name",Member.InstrumentId)) %>
</div>
<div>
    <label for="Member.NmfNumber">NMF nummer</label>
    <input type="text" name="Member.NmfNumber" value='<%= Member.NmfNumber %>' />
</div>
<div>
    <label for="Member.ActiveState">Forsikret?</label>
    <%= Html.DropDownList("Member.InsuranceState", new SelectList(StaticFormHelper.insuranceStates, "Id","Name",Member.InsuranceState)) %>
</div>
<div>
    <label for="Member.SecurityRole">Rolle på web</label>
    <%= Html.DropDownList("Member.SecurityRole", new SelectList(StaticFormHelper.PreDefSecurityRoles, "Id", "Name", Member.SecurityRole))%>
</div>
<div>
    <label for="Member.Roles">Medlem av</label>
    <%= Html.ListBox("Member.Roles",new MultiSelectList(Roles,"Id","Name",Member.Roles.Select(r=>r.Id))) %>
</div>
<select multiple="multiple" name="Member.Roles">
</select>




